//
//  EQModel.m
//  CCBbelefitLife
//
//  Created by 小晓 on 16/1/19.
//  Copyright © 2016年 liurg. All rights reserved.
//

#import "EQModel.h"

@implementation EQModel

-(NSArray *)eqValueFromIndex:(NSInteger)eqValue{
    if(eqValue == 0){
        eqvalue31 = 0;
        eqvalue62 = 0;
        eqvalue125 = 0;
        eqvalue250 = 0;
        eqvalue500 = 0;
        eqvalue1000 = 0;
        eqvalue2000 = 0;
        eqvalue4000 = 0;
        eqvalue8000 = 0;
        eqvalue16000 = 0;
    }else if (eqValue == 1){//流行
        eqvalue31 = 0;
        eqvalue62 = 0;
        eqvalue125 = 0;
        eqvalue250 = 0;
        eqvalue500 = 0;
        eqvalue1000 = 1;
        eqvalue2000 = 2;
        eqvalue4000 = 2;
        eqvalue8000 = 2;
        eqvalue16000 = 1;
    }else if (eqValue == 2){//重低音
        eqvalue31 = 6;
        eqvalue62 = 9;
        eqvalue125 = 10;
        eqvalue250 = 10;
        eqvalue500 = 10;
        eqvalue1000 = 3;
        eqvalue2000 = -1;
        eqvalue4000 = -2;
        eqvalue8000 = -10;
        eqvalue16000 = -7;
    }else if (eqValue == 3){//人声
        eqvalue31 = -3;
        eqvalue62 = -5;
        eqvalue125 = -6;
        eqvalue250 = -6;
        eqvalue500 = -6;
        eqvalue1000 = 3;
        eqvalue2000 = 6;
        eqvalue4000 = 5;
        eqvalue8000 = -4;
        eqvalue16000 = -3;
    }else if (eqValue == 4){//摇滚
        eqvalue31 = 3;
        eqvalue62 = 4;
        eqvalue125 = 5;
        eqvalue250 = 5;
        eqvalue500 = 5;
        eqvalue1000 = -3;
        eqvalue2000 = -6;
        eqvalue4000 = -5;
        eqvalue8000 = 4;
        eqvalue16000 = 3;
    }else if (eqValue == 5){//古典
        eqvalue31 = 0;
        eqvalue62 = 0;
        eqvalue125 = 1;
        eqvalue250 = 1;
        eqvalue500 = 1;
        eqvalue1000 = 2;
        eqvalue2000 = 2;
        eqvalue4000 = 2;
        eqvalue8000 = -1;
        eqvalue16000 = -1;
    }else if (eqValue == 6){//爵士
        eqvalue31 = 0;
        eqvalue62 = 0;
        eqvalue125 = 0;
        eqvalue250 = 0;
        eqvalue500 = 0;
        eqvalue1000 = 3;
        eqvalue2000 = 5;
        eqvalue4000 = 5;
        eqvalue8000 = 3;
        eqvalue16000 = 1;
    }else if (eqValue == 7){//舞曲
        eqvalue31 = 3;
        eqvalue62 = 4;
        eqvalue125 = 5;
        eqvalue250 = 5;
        eqvalue500 = 5;
        eqvalue1000 = 6;
        eqvalue2000 = 6;
        eqvalue4000 = 5;
        eqvalue8000 = -5;
        eqvalue16000 = -4;
    }else if (eqValue == 8){//电子
        eqvalue31 = -6;
        eqvalue62 = -9;
        eqvalue125 = -10;
        eqvalue250 = -10;
        eqvalue500 = -10;
        eqvalue1000 = -1;
        eqvalue2000 = 2;
        eqvalue4000 = 3;
        eqvalue8000 = 10;
        eqvalue16000 = 6;
    }
    NSArray *eqValueArr = [NSArray arrayWithObjects:[NSNumber numberWithFloat:eqvalue31],[NSNumber numberWithFloat:eqvalue62],[NSNumber numberWithFloat:eqvalue125],[NSNumber numberWithFloat:eqvalue250],[NSNumber numberWithFloat:eqvalue500],[NSNumber numberWithFloat:eqvalue1000],[NSNumber numberWithFloat:eqvalue2000],[NSNumber numberWithFloat:eqvalue4000],[NSNumber numberWithFloat:eqvalue8000],[NSNumber numberWithFloat:eqvalue16000], nil];
    
    return eqValueArr;
}



@end
